package cm.study.config.vo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;


public abstract class Result implements Serializable {
    protected Boolean result;
    protected Integer code;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    protected String message;

    public Result(Boolean result, Integer code, String message) {
        this.result = result;
        this.code = code;
        this.message = message;
    }

    public Boolean getResult() {
        return result;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public String toString() {
        return "Result{" +
                "result=" + result +
                ", code='" + code + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
